#include "skin.h"
#include "ui_skin.h"

skin::skin(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::skin)
{
    ui->setupUi(this);
}

skin::~skin()
{
    delete ui;
}

void skin::on_pushButton_2_clicked()
{
    close();
}

void skin::on_pushButton_clicked()
{
    if(ui->radioButton->isChecked())
    {
        emit(skinemit_signal(1));
        close();
    }else if(ui->radioButton_2->isChecked())
    {
        emit(skinemit_signal(2));
        close();
    }else if(ui->radioButton_3->isChecked())
    {
        emit(skinemit_signal(3));
        close();
    }else
    {
        emit(skinemit_signal(4));
        close();
    }
}
